<?php

function smarty_function_load_module($params, &$smarty){
	global $central_root_path;
	include_once($central_root_path . $params['url']);
	
	if(isset($params['args'])) $smarty->assign($params['assign'], new $params['name'](explode(";", $params['args'])));
	else $smarty->assign($params['assign'], new $params['name']());
}

?>